<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateSystemBasicTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('system_basic', function (Blueprint $table) {
            $table->increments('id');
            $table->string('title')->nullable()->comment('网站标题');
            $table->string('keywords')->nullable()->comment('网站关键词');
            $table->text('description')->nullable()->comment('网站描述');
            $table->string('copyright')->nullable()->comment('底部版权信息');
            $table->string('record_number')->nullable()->comment('网站备案号');
            $table->string('address')->nullable()->comment('地址');
            $table->string('mobile')->nullable()->comment('手机号');
            $table->string('email')->nullable()->comment('邮箱');
            $table->string('qq')->nullable()->comment('客服QQ');
            $table->string('tel')->nullable()->comment('客服电话');
            $table->string('logo')->nullable()->comment('网站logo');
            $table->string('icon')->nullable()->comment('网站icon小图标');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('system_basic');
    }
}
